// src/routers/index.js 或 src/router/index.js
import { createRouter, createWebHistory } from 'vue-router'
import CommunityList from '@/pages/community/CommunityList.vue'

const routes = [
    {
        path: '/community-list',
        component: CommunityList,
        name: 'CommunityList'
    }
    // 这里还可以有其他页面，需要时再进行导入，类似于：import CommunityList from '@/pages/community/CommunityList.vue'
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
